package com.suray.attendance.model.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * Description: 标准报工明细
 * Author: linyu
 * Date: 2023/11/28
 */
@Data
@ApiModel(value = "ProductionDataCollectDetailInfo")
@TableName("production_data_collect_detail_info")
public class ProductionDataCollectDetailInfo  implements Serializable {
    private static final long serialVersionUID = 2345679001L;

    @ApiModelProperty(value = "序号")
    @TableField(value = "doc_no_seq")
    private Integer doc_no_seq;

    @ApiModelProperty(value = "erp报工明细的主键id")
    @TableField(value = "erp_id")
    private String erp_id;

    @ApiModelProperty(value = "工单单号")
    @TableField(value = "wo_no")
    private String wo_no;

    @ApiModelProperty(value = "工序编号")
    @TableField(value = "subop_no")
    private String subop_no;

    @ApiModelProperty(value = "生产日期")
    @TableField(value = "production_date")
    private String production_date;

    @ApiModelProperty(value = "人员编号")
    @TableField(value = "employee_no")
    private String employee_no;

    @ApiModelProperty(value = "人员姓名")
    @TableField(value = "employee_name")
    private String employee_name;

    @ApiModelProperty(value = "班别编号")
    @TableField(value = "shift_no")
    private String shift_no;

    @ApiModelProperty(value = "机器类型")
    @TableField(value = "machine_type")
    private String machine_type;

    @ApiModelProperty(value = "机器编号")
    @TableField(value = "machine_no")
    private String machine_no;

    @ApiModelProperty(value = "使用人时")
    @TableField(value = "labor_hours")
    private Long labor_hours;

    @ApiModelProperty(value = "使用机时")
    @TableField(value = "machine_hours")
    private Integer machine_hours;

    @ApiModelProperty(value = "数量")
    @TableField(value = "qty")
    private BigDecimal qty;

    @ApiModelProperty(value = "工单预计数量")
    @TableField(value = "plan_qty")
    private BigDecimal plan_qty;

    @ApiModelProperty(value = "单位编号")
    @TableField(value = "unit_no")
    private String unit_no;

    @ApiModelProperty(value = "单位名称")
    @TableField(value = "unit_name")
    private String unit_name;

    @ApiModelProperty(value = "计件类型")
    @TableField(value = "piece_type")
    private String piece_type;

    @ApiModelProperty(value = "每小时工资")
    @TableField(value = "hourly_wages")
    private BigDecimal hourly_wages;

    @ApiModelProperty(value = "计件单价")
    @TableField(value = "piece_price")
    private BigDecimal piece_price;

    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;

    @ApiModelProperty(value = "技术编号")
    @TableField(value = "technology_code")
    private String technology_code;

    @ApiModelProperty(value = "项目编号")
    @TableField(value = "project_code")
    private String project_code;

    @ApiModelProperty(value = "项目名称")
    @TableField(value = "project_name")
    private String project_name;

    @ApiModelProperty(value = "规格")
    @TableField(value = "item_specification")
    private String item_specification;

    @ApiModelProperty(value = "品名")
    @TableField(value = "item_name")
    private String item_name;

    @ApiModelProperty(value = "品号")
    @TableField(value = "item_code")
    private String item_code;

    @ApiModelProperty(value = "工作中心编号")
    @TableField(value = "workstation_no")
    private String workstation_no;

    @ApiModelProperty(value = "工作中心名称")
    @TableField(value = "workstation_name")
    private String workstation_name;

    @ApiModelProperty(value = "营运据点编号")
    @TableField(value = "om_site_id")
    private String om_site_id;

    @ApiModelProperty(value = "钉钉userId")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "考勤结果")
    @TableField(value = "attendance_result")
    private String attendanceResult;

    @ApiModelProperty(value = "钉钉考勤工时")
    @TableField(value = "ding_work_time")
    private Long dingWorkTime;

    @ApiModelProperty(value = "开始工作时间")
    @TableField(value = "start_work_time")
    private String startWorkTime;

    @ApiModelProperty(value = "结束工作时间")
    @TableField(value = "end_work_time")
    private String endWorkTime;

    @ApiModelProperty(value = "开始工作结果")
    @TableField(value = "start_work_result")
    private String startWorkResult;

    @ApiModelProperty(value = "结束工作结果")
    @TableField(value = "end_work_result")
    private String endWorkResult;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "宜搭记录id")
    @TableId("yida_id")
    private String yida_id;

}
